package com.imooc.order.fallback.itemservice;

import com.imooc.item.pojo.Items;
import com.imooc.item.pojo.ItemsImg;
import com.imooc.item.pojo.ItemsParam;
import com.imooc.item.pojo.ItemsSpec;
import com.imooc.item.pojo.vo.CommentLevelCountsVO;
import com.imooc.item.pojo.vo.ShopcartVO;
import com.imooc.pojo.PagedGridResult;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 顾志杰
 * @date 2020/9/14-15:36
 */
@Component
@RequestMapping("itemJoke")
public class ItemServiceFallback implements ItemServiceFeignClient {
    @Override
    public Items queryItemById(String itemId) {
      throw new RuntimeException("服务维护中");
    }

    @Override
    public List<ItemsImg> queryItemImgList(String itemId) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public List<ItemsSpec> queryItemSpecList(String itemId) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public ItemsParam queryItemParam(String itemId) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public CommentLevelCountsVO queryCommentCounts(String itemId) {
        return null;
    }

    @Override
    public PagedGridResult queryPagedComments(String itemId, Integer level, Integer page, Integer pageSize) {
        return null;
    }

    @Override
    public List<ShopcartVO> queryItemsBySpecIds(String specIds) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public ItemsSpec queryItemSpecById(String itemSpecId) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public String queryItemMainImgById(String itemId) {
        throw new RuntimeException("服务维护中");
    }

    @Override
    public void decreaseItemSpecStock(String itemSpecId, int buyCounts) {
        throw new RuntimeException("服务维护中");
    }
}
